//
//  RegularExp.h
//  Simubang_iphone
//
//  Created by Kelly xu on 16/3/23.
//  Copyright © 2016年 Simubang. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger,RegexType){
    RegexNormal,
    RegexPhone,
    RegexMobile,
    RegexEmail,
    RegexName,
    RegexPwd,
    RegexZhengjian,
    RegexCountryArea,
    RegexCar,
    RegexCustomerName,
    RegexNational,
    RegexNameEnglish,
    RegexPostalCode,
    RegexConnectMan,
    RegexLoginName,
    RegexLoginPwd,
    RegexTrueName,
    RegexEnCn,  //中英文
    RegexEnCnNoDashes,
    RegexSACode,
    RegexIDCard,
    RegexNumberAndSpell,
    RegexEnNumberAndCn
};
@interface RegularExp : NSObject
+(BOOL)isValidateStr:(NSString*)str type:(enum RegexType)type;
+(BOOL)isValidateStr:(NSString*)str minLen:(NSInteger)minLen maxLen:(NSInteger)maxLen;
+(BOOL)isValidateStr:(NSString*)str type:(enum RegexType)type minLen:(NSInteger)minLen maxLen:(NSInteger)maxLen;
@end
